<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ include file="/WEB-INF/jsp/common/_includes.jsp"%>
<jsp:include page="/WEB-INF/jsp/common/_head.jsp"></jsp:include>
<link rel="stylesheet"
	href="/static/vendor/upload/css/jquery.fileupload.css" type="text/css" />
<div class="ui grid">
	<div class="row">
		<div class="column">
			<div class="ui two column grid">
				<div class="three wide column">
					<jsp:include page="/WEB-INF/jsp/common/_sidebar.jsp">
						<jsp:param name="index" value="4" />
					</jsp:include>
				</div>
				<div id="container" class="thirteen wide column">
					<div class="alert alert-success w200 center-block text-center "
						style="display: none;" role="alert"></div>
					<ol class="breadcrumb">
						<li><a href="/">后台管理</a></li>
						<li><a href="/notice">公告管理</a></li>
						<li class="active">录入公告</li>
					</ol>
					<form class="form-horizontal" id="addForm" method="post"
						action="/notice/add">
						<div class="form-group">
							<label class="col-sm-2 control-label">站点</label>
							<div class="col-sm-5">
								<select class="form-control" name="siteId">
									<option value="">请选择站点</option>
									<c:forEach items="${initSiteList }" var="site">
										<option value="${site.id}"
											<c:if test="${siteId == site.id }">selected="selected"</c:if>>${site.siteName}</option>
									</c:forEach>
								</select>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label">公告标题</label>
							<div class="col-sm-8 desc">
								<input type="text" class="form-control" id="js_title"
									name="title" placeholder="输入公告标题">
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label">发布日期</label>
							<div class="col-sm-8 desc">
								<input type="date" class="form-control" id="publishDate"
									name="publishDate" placeholder="输入发布日期">
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label">公告内容</label>
							<div class="col-sm-8">
								<script id="myeditor" name="content"></script>
							</div>
						</div>
						<div class="form-group" id="js_submit">
							<div class="col-sm-offset-3 col-sm-2">
								<button type="submit" class="btn btn-success">提交</button>
							</div>
						</div>
					</form>
				</div>
			</div>
		</div>
	</div>
</div>
<jsp:include page="/WEB-INF/jsp/common/_foot.jsp"></jsp:include>
<script type="text/javascript"
	src="/static/vendor/jquery.validate/jquery.validate.js"></script>
<script type="text/javascript" src="/static/js/notice/add.js"></script>
<script type="text/javascript"
	src="../../../resources/ueditor/ueditor.config.js"></script>
<script type="text/javascript"
	src="../../../resources/ueditor/ueditor.all.js"></script>

<!-- 实例化编辑器 -->
<script type="text/javascript">
	window.UEDITOR_HOME_URL = "../../../resources/ueditor/";
	var ue = UE.getEditor('myeditor');
</script>
